package com.jyw.business.ast.domain.vo.web;

import com.jyw.business.ast.domain.AstDispose;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.enums.ConversionType;
import com.jyw.common.utils.bean.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("处置详情")
@NoArgsConstructor
public class AstDisposeDetailVo {

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 处置原因 */
    @ApiModelProperty("处置原因")
    private String reason;

    /** 审核人 */
    @ApiModelProperty("审核人")
    @Conversion(value = ConversionType.USER,name = AstDisposePageVo.Fields.auditUserName)
    private Long auditUserId;

    @ApiModelProperty("审核人名称")
    private String auditUserName;

    /** 审核状态(0未审核,1驳回,2已完成) */
    @ApiModelProperty("审核状态(0未审核,1驳回,2已完成)")
    private String auditState;

    /** 审核备注 */
    @ApiModelProperty("审核备注")
    private String auditRemark;

    /** 申请人 */
    @ApiModelProperty("申请人")
    @Conversion(value = ConversionType.USER,name = AstDisposePageVo.Fields.createUserName)
    private Long createUser;

    @ApiModelProperty("申请人名称")
    private String createUserName;

    /** 申请时间 */
    @ApiModelProperty("申请时间")
    private Date createTime;

    @ApiModelProperty("处置资产列表")
    private List<DisposeAstVo> list;

    public AstDisposeDetailVo(AstDispose dispose) {
        BeanUtils.copyProperties(dispose,this);
    }
}
